<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
    import { mapState } from 'vuex';
    import md5 from '@/common/md5.min.js';
	import {toast} from '@/common/util.js';
    
	export default {
		data() {
			return {
				url: '',
				 webviewStyles: {
				                    progress: false
			}
		}},
        computed: mapState(['hasLogin', 'userInfo']),
		onLoad() {
			
			var pages = getCurrentPages();
				var page = pages[pages.length - 1];
				var currentWebview=page.$getAppWebview();
				setTimeout(function(){
					var web_view= currentWebview.children();
					var w=plus.nativeUI.showWaiting();
					web_view[0].addEventListener("loading",function(){
						w.show();
					},false);
					
					web_view[0].addEventListener("loaded",function(){
						w.close();
						w=null;
					},false);
				},200); 
				this.url = "http://weixin.shipxy.com/shipxy/map/";
		},
	}
</script>

<style>

</style>

